package com.pipi.biyesheji.service;

import com.pipi.biyesheji.pojo.Customer;

public interface CustomerService extends CrudService<Customer>{

    /**
     * 返回登陆的用户
     * @param customer
     * @return
     */
    Customer foreLogin(Customer customer);

    /**
     * 设置会员
     * @param id
     */
    void updateStatus(Long id, Integer status);

    /**
     * 修改密码
     * @param customer
     * @return void
     */
    Customer updatePassword(Customer customer);

    Customer queryByName(String name);
}
